package com.tianruan.psychological.moduls.sys.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianruan.psychological.moduls.sys.user.entry.db.RolePermissionDO;


/**
 * @author liuxin
 * @date 2019/9/7
 */
public interface RolePermissionMapper extends BaseMapper<RolePermissionDO> {


    default void deleteByRoleId(String roleId){
        QueryWrapper<RolePermissionDO> wrapper=new QueryWrapper<>();
        wrapper.eq("role_id",roleId);
        this.delete(wrapper);
    }
}
